import request from '@/utils/request'

export function queryList(data) {
  return request({
    url: '/hndqyss/model/queryList',
    method: 'post',
    data
  })
}
export function queryList1(data) {
  return request({
    url: '/hndqyss/model/queryList1',
    method: 'post',
    data
  })
}

export function modeldelete(data) {
  return request({
    url: '/hndqyss/model/delete?ids='+data,
    method: 'post',
  })
}
export function queryQuotasAttribute(data) {
  return request({
    url: '/hndqyss/model/query_quotas_attribute',
    method: 'post',
  })
}
export function addQuotas(data) {
  return request({
    url: '/hndqyss/model/add',
    method: 'post',
    data
  })
}
export function updateQuotas(data) {
  return request({
    url: '/hndqyss/model/update',
    method: 'post',
    data
  })
}
export function testQuotas(data) {
  return request({
    url: '/hndqyss/model/test',
    method: 'post',
    data
  })
}

export function quotasResultQueryList(data) {
  return request({
      url: '/hndqyss/quotas_result/queryList',
      method: 'post',
      data
  })
}
export function queryAbnormolQuotasList(data) {
  return request({
      url: '/hndqyss/quotas_result/queryAbnormolQuotasList',
      method: 'post',
      data
  })
}

export function download_report(data) {
  return request({
      url: '/hndqyss/quotas_result/download_report?nsrsbh='+data.nsrsbh+'&quotas_id='+data.quotas_id+'&batch_id='+data.batch_id,
      method: 'get',
      responseType: "blob",
      data
  })
}